<?php
/**
 * @filename:					admin项目配置文件
 * @desc:						对项目的一些约束配置
 * 
 * @author：						houyining
 * @copyright:					hou.yining@gmail.com
 * @date:						2011-03-27
 */

return array(
	//开启调试模式，正式上线时关闭此项
	'APP_DEBUG'				=> true,
	//启动多语言模式
	'LANG_SWITCH_ON'		=> true,
	//关闭自动检测语言
	'LANG_AUTO_DETECT'		=> false,

	//后台登陆页面默认没有验证码
	'ADMIN_VERIFY'			=> false,	

	//面包屑导航控制
	'CRUMB_FIRST'			=> 'first',
	'CRUMB_LAST'			=> 'last',
	'CRUMB_DEFAULT'			=> 'default',
	'NO_SHOW_CRUMB'			=> 'no',
	
	//配置数据库连接相关参数
	'DB_TYPE'               => 'mysql',     			
	'DB_HOST'               => 'localhost', 			
	'DB_NAME'               => 'aoyagi',          
	'DB_USER'               => 'root',      		
	'DB_PWD'                => '123456',          	
	'DB_PORT'               => 3306,        		
	'DB_PREFIX'             => 'aoyagi_',    		
	'DB_SUFFIX'             => '',          		
    'DB_FIELDTYPE_CHECK'    => true,       		
    'DB_FIELDS_CACHE'       => false, 
    'DB_CHARSET'            => 'utf8',  

	//开启RBAC认证
	'USER_AUTH_ON'			=> true,
	'USER_AUTH_TYPE'		=> 1,		
	'USER_AUTH_KEY'			=> 'authId',	
    'ADMIN_AUTH_KEY'		=> 'administrator',
	'USER_AUTH_MODEL'		=> 'AdminUser',	
	'AUTH_PWD_ENCODER'		=> 'md5',	
	'USER_AUTH_GATEWAY'		=> '/Public/login',	
	'NOT_AUTH_MODULE'		=> 'Public',		
	'REQUIRE_AUTH_MODULE'	=> '',		
	'NOT_AUTH_ACTION'		=> '',		
	'REQUIRE_AUTH_ACTION'	=> '',	
    'GUEST_AUTH_ON'         => false,    
    'GUEST_AUTH_ID'         => 0,     			
    'DB_LIKE_FIELDS'		=> 'title|remark',
	'RBAC_ROLE_TABLE'		=> 'aoyagi_role',
	'RBAC_USER_TABLE'		=> 'aoyagi_role_user',
	'RBAC_ACCESS_TABLE' 	=> 'aoyagi_access',
	'RBAC_NODE_TABLE'		=> 'aoyagi_node',
);
?>